#!/bin/bash -e

function info() {
echo Usage: `basename $0` 'package_path data'
exit 1
}

while getopts  ":p:f:" opt; do
	case  $opt  in
		p) out_prefix=$OPTARG;;
		f) suffix=$OPTARG;;
		*) info;;
	esac
done
shift $(($OPTIND - 1))


if [ $# -lt 1 ]; then info; fi


cp $1/rf_sg.py ~/biocluster/src/mbio/tools/graph/rf.py
cp $1/rf_sg1.py ~/biocluster/src/mbio/api/database/toolapps/tools/graph/rf.py

cp $1/rf_const.py ~/biocluster/src/mbio/tools/graph
cp $1/rf_const.py ~/biocluster/src/mbio/api/database/toolapps/tools/graph

cp $1/table_rf.py ~/biocluster/src/mbio/files/toolapps/table_rf.py

python $1/scripts/run.py `path_abs.sh`/$2
